Skip to content

feat(v4): expose Kafka headers#81

Open
leowind wants to merge 2 commits intoAccelByte:masterfrom
leowind:AR-7931-add-event-header
Open

feat(v4): expose Kafka headers#81
leowind wants to merge 2 commits intoAccelByte:masterfrom
leowind:AR-7931-add-event-header

Conversation

@leowind
Copy link
Copy Markdown
Contributor

@leowind leowind commented Aug 20, 2024

The lobby service needs to retrieve the user's sequence ID before processing the message. Attaching the sequence ID to the event payload requires decoding the payload first, which currently happens on the worker. Moving this step outside the worker would slow down the Kafka message consumption rate.
By using headers, the lobby service can retrieve the user's sequence ID from the Kafka message without needing to decode the payload before sending it to the workers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant